<?php
class Reg_model extends CI_Model{
    
    private $_table='reg';
    
    public function get_reg(){
        $query=$this->db->get($this->_table);
        return $query->result_array();
    }
    
    public function insert_reg($params = array()) {
        return $this->db->insert($this->_table, $params);
    }
}

